//
// Description: 492. 构造矩形
// Created by Loading on 2021/10/23.
//

#include <bits/stdc++.h>

using namespace std;

vector<int> constructRectangle(int area) {
    int w = sqrt(area);

    // 发现能够整除，跳出循环
    while (area % w) {
        --w;
    }

    return {area / w, w};
}

int main() {
    int area = 15;
    vector<int> res = constructRectangle(area);
    cout << res[0] << ' ' << res[1] << endl;

    return 0;
}